
public class SimpleNumber2 {
	int num;
	
	SimpleNumber2(int n) {
		num = n;
	}
	
	public String toString() {
		return String.valueOf(num);
	}
	
	public int hashCode() {
		return num % 3;
	}
	
	public boolean equals(Object obj) {
		if(obj != null && obj instanceof SimpleNumber2) {
			SimpleNumber2 comp = (SimpleNumber2)obj;
			if(comp.num == num) {
				return true;
			}
		}
		
		return false;
	}
}
